/**
 * 授权 API
 */
import {
	http
} from '../request/main.js'


/**
 * 获取储值首页数据
 * 
 * @returns {Promise}
 */
export function getWrapData() {
	return http.post('/fund/getWrapData')
}


/**
 * 充值
 * 
 * @returns {Promise}
 */
export function recharge(fund_pack_id, channel, amount) {
	return http.post('/fund/recharge', {
		fund_pack_id,
		channel,
		amount
	})
}

/**
 * 获取充值订单
 * 
 * @returns {Promise}
 */
export function getOrderList(page, page_size) {
	return http.post('/fund/getOrderList', {
		page,
		page_size
	})
}

/**
 * 获取交易明细
 * 
 * @returns {Promise}
 */
export function getTradeList(page, page_size) {
	return http.post('/fund/getTradeList', {
		page,
		page_size
	})
}
